import './assets/main.css'
import { createApp } from 'vue'

import App from './App.vue'
import './assets/reset.css'
import router from './router/router' // 只保留一次导入
 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
 
// 注册 Element Plus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
 
app.use(ElementPlus)
app.use(router) // 确保路由已挂载

app.mount("#app")
